<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
require_once APPPATH . 'controllers/Application' . EXT;

class Pay_model extends CI_Model{
    public function __construct() {
        parent::__construct();
    }
    
    public function getPay(){
        $query = $this->db->get('pay');
        if($query->num_rows() > 0){
            return $query->result();
        }else{
            return false;
        }
    }
    
    public function GetPay2($payID){
        $this->db->where("PayID",$payID);
        $query=$this->db->get("pay");
        if($query->num_rows() > 0){
            return $query->row();
        }else{
            return FALSE;
        }
    }
}
?>
